package liangtWorkSpace.strategy.comparableFile;

/**
 * @ClassName StrategyMain
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/4/10 17:30
 */

import java.util.Arrays;

/**
 * 排序
 */
public class StrategyMain {
    public static void main(String[] args) {
//        int[] a = {9,2,3,5,7,1,4};
//        Sorter sorter= new Sorter();
//        sorter.sort(a);
        Dog[] dogs = {new Dog(1),new Dog(7),new Dog(5)};
        Sorter.sort(dogs);
        System.out.println(Arrays.toString(dogs));
    }
}
